package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 社工余额变动记录对象 jiajia_worker_money_change
 * 
 * @author knd
 * @date 2021-11-02
 */
public class JiajiaWorkerMoneyChange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 社工id */
    @Excel(name = "社工id")
    private Long wid;

    /** 项目id */
    @Excel(name = "项目id")
    private Long iid;

    /** 订单id */
    @Excel(name = "订单id")
    private Long oid;

    /** 变动金额 */
    @Excel(name = "变动金额")
    private BigDecimal changemoney;

    /** 变动后金额 */
    @Excel(name = "变动后金额")
    private BigDecimal changeAfter;

    /** 变动前金额 */
    @Excel(name = "变动前金额")
    private BigDecimal changeBefor;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 备注 */
    @Excel(name = "备注")
    private String des;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date addtime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWid(Long wid) 
    {
        this.wid = wid;
    }

    public Long getWid() 
    {
        return wid;
    }
    public void setIid(Long iid) 
    {
        this.iid = iid;
    }

    public Long getIid() 
    {
        return iid;
    }
    public void setOid(Long oid) 
    {
        this.oid = oid;
    }

    public Long getOid() 
    {
        return oid;
    }
    public void setChangemoney(BigDecimal changemoney) 
    {
        this.changemoney = changemoney;
    }

    public BigDecimal getChangemoney() 
    {
        return changemoney;
    }
    public void setChangeAfter(BigDecimal changeAfter) 
    {
        this.changeAfter = changeAfter;
    }

    public BigDecimal getChangeAfter() 
    {
        return changeAfter;
    }
    public void setChangeBefor(BigDecimal changeBefor) 
    {
        this.changeBefor = changeBefor;
    }

    public BigDecimal getChangeBefor() 
    {
        return changeBefor;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDes(String des) 
    {
        this.des = des;
    }

    public String getDes() 
    {
        return des;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("wid", getWid())
            .append("iid", getIid())
            .append("oid", getOid())
            .append("changemoney", getChangemoney())
            .append("changeAfter", getChangeAfter())
            .append("changeBefor", getChangeBefor())
            .append("type", getType())
            .append("des", getDes())
            .append("addtime", getAddtime())
            .toString();
    }
}
